import { Button } from "antd";
import React, { useEffect } from "react";
import { useNavigate, useLocation } from "react-router-dom";
import style from "./login.module.less";

const LoginPage = (props: any) => {
  const navigate = useNavigate();
  const location = useLocation();
  useEffect(() => {}, []);
  return (
    <div className={style["login-wapper"]}>
      LoginPage
      <Button
        onClick={() => {
          navigate({
            pathname: "/home",
          });
        }}
      >
        前往首页12
      </Button>
    </div>
  );
};
export default LoginPage;
